﻿using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UtilZ.Dotnet.DBIBase
{
    /// <summary>
    /// 原始数据库连接对象
    /// </summary>
    public class PrimitiveDbConnection
    {
        /// <summary>
        /// 据库连接对象
        /// </summary>
        public DbConnection DbConnection { get; private set; }

        /// <summary>
        /// 连接池有效性ID
        /// </summary>
        public int PoolValidID { get; private set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dbConnection"></param>
        /// <param name="poolValidID">连接池有效性ID</param>
        public PrimitiveDbConnection(DbConnection dbConnection, int poolValidID)
        {
            this.DbConnection = dbConnection;
            this.PoolValidID = poolValidID;
        }
    }
}